<%= render :partial => 'messages' %>

<% unless @record.nil? %>
    <%= error_messages_for 'record' %>
<% end %>